
######################################################################
## File: $Id: Makefile.PL 3247 2003-01-07 16:34:44Z spadkins $
######################################################################

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

%opts = (
    #'INSTALLDIRS' => 'perl',
    'NAME'        => 'Devel-Metadata',
    'DISTNAME'    => 'Devel-Metadata',
    'VERSION'     => '0.50',
    'PREREQ_PM'   => { # I haven't yet determined what the minimum versions should be
                       #'Aspect'                   => 0,  # used for debugging
                       #'Class::MethodMaker'       => 0,  # [prereq for Aspect] auto-generate methods
                       #'Compress::Zlib'           => 0,  # for compressed serialization and browser responses
                       #'Data::Dumper'             => 0,  # used for debugging
                       #'Date::Parse'              => 0,  # date support
                       #'Date::Format'             => 0,  # date support
                       #'Storable'                 => 0,  # used for serialization everywhere
                     },
    #'linkext'     => { LINKTYPE=>'' },   # no link needed
    'dist'        => {'COMPRESS'=>'gzip -9f', 'SUFFIX' => 'gz',
                      'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'},
);

######################################################################
# PREFIX
######################################################################

# I like setting the PREFIX variable in the environment,
# so I write my Makefile.PL to use it as a valid alternative
# to specifying it on the command line with
# "perl Makefile.PL PREFIX=/usr/foo".

if ($ENV{PREFIX}) {
    $PREFIX = $ENV{PREFIX};
    $opts{PREFIX} = $PREFIX;
}
else {
    $PREFIX = "/usr/local";
}

######################################################################
# MAKE THE MAKEFILE
######################################################################

WriteMakefile(%opts);

